package cn.chenwx.service.Impl;

import cn.chenwx.entity.Enport1Demo;
import cn.chenwx.entity.EnportDemo;
import cn.chenwx.entity.TestDemo;
import cn.chenwx.mapper.EnportMapper;
import cn.chenwx.mapper.TestMapper;
import cn.chenwx.service.SaveData;
import com.alibaba.excel.EasyExcel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaveDataImpl implements SaveData {

    @Autowired
    private EnportMapper enportMapper;


    @Override
    public List<EnportDemo> enportData(String type) {
        return enportMapper.select(type);
    }

    @Override
    public List<Enport1Demo> enportData1(String type) {
        return enportMapper.select1(type);
    }
}
